//
//  smallView.m
//  IWaneHome
//
//  Created by hwd on 16/6/1.
//  Copyright © 2016年 hwd_zlg. All rights reserved.
//

#import "smallView.h"

@implementation smallView

- (instancetype)initWithFrame:(CGRect)frame Title:(NSString *)title BtnImage:(NSString *)btnImage
{
    if (self = [super initWithFrame:frame]) {// 先调用父类的initWithFrame方法
        self.backgroundColor = [UIColor whiteColor];
        //按钮的图片
        _imageV = [TomamaUI createImageView:CGRectMake(15*screenW_6,(frame.size.height-18*screenW_6)/2,18*screenW_6, 18*screenW_6) backGroundImageV:btnImage];
        [self addSubview:_imageV];
        //按钮的名字
        _label = [TomamaUI createLabel:CGRectMake(45*screenW_6,0,SCREENW/2-36*screenW_6,frame.size.height) textAligment:0 font:[UIFont systemFontOfSize:15*screenW_6] textColor:[UIColor colorWithHexString:@"#666666"] text:title];
        [self addSubview:_label];
    }
    return self;
}

@end
